import {Component, OnInit} from '@angular/core';
import {DataStorageUtil} from '../util/data-storage-util';
import {SSOConstants} from '../constants/constants';

@Component({
  selector: 'app-error',
  templateUrl: './error.component.html'
})
export class ErrorComponent implements OnInit {

  error:string;
  constructor(
    private dataStorage : DataStorageUtil
  ) { }

  ngOnInit() {
    this.getError();
  }

  private getError(){
    this.error = this.dataStorage.get(SSOConstants.error);
  }
}
